package lab.lab02;

// Zelos类，实现了Boss接口
public class Zelos implements Boss {
    private String name;
    private int health;

    public Zelos(String name, int health) {
        this.name = name;
        this.health = health;
    }

    public void attack() {
        System.out.println(name + " attacks! Health: " + health);
    }

    public void move() {
        System.out.println(name + " flies.");
    }

    public void heal() {
        if (health < 10) {
            health += 30;
            System.out.println(name + " heals 30 health points. Health: " + health);
        }
    }
}
